package com.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.dao.ThumbnailDao;
import com.crm.entity.Thumbnail;
import com.crm.service.ThumbnailService;

@Service
public class ThumbnailServiceImpl implements ThumbnailService {

	@Autowired
	private ThumbnailDao thumbnailDao;

	@Override
	public List<Thumbnail> findThumbnailByPhotoId(String photoId) {
		return thumbnailDao.findByPhotoId(photoId);
	}

	@Override
	public void addThumbnail(Thumbnail thumbnail) {
		thumbnailDao.save(thumbnail);
	}
	
}
